import { createApp } from "vue";
import ElementPlus from "element-plus";
import App from "./App.vue";
import router from "./router/index";
import "element-plus/dist/index.css";
import "./index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "./style/elreset.less";
import "./style/cssreset.css";
import "./style/public.less";
// 字体图标库
import "./iconfont/iconfont.css";
// import "./iconfont/font/iconfont.css";

import {createPinia} from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);
app.use(pinia);
app.use(router);
app.use(ElementPlus);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.mount("#app");
